﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;

namespace T.FAS.Runtime.MF.Entity
{
    // 基础形状类
    public abstract class ShapeBase
    {
        [JsonProperty("shape")]
        public string Shape { get; set; }

        [JsonProperty("id")]
        public string Id { get; set; }

        [JsonProperty("parent")]
        public string Parent { get; set; }

        [JsonProperty("zIndex", NullValueHandling = NullValueHandling.Ignore)]
        public int ZIndex { get; set; }
        [JsonProperty("ports")]
        public Ports Ports { get; set; }

        public virtual List<UserVariable> NodeInputOutputVariables { get { return new List<UserVariable>(); } }
        /// <summary>
        /// 节点所属的工作流
        /// </summary>
        public Microflow BelongTo { get; set; }
    }
}